Get the ASCII value of a characterΒΆ
Get the ASCII value of a character.
print(ord('a'))
print(ord('A'))
print(ord('1'))
print(ord('@'))
Output:
97
65
49
64
print(ord('a'))
print(ord('A'))
print(ord('1'))
print(ord('@'))
Output:
97
65
49
64